importall

89 views
Skip to first unread message

Stefan Karpinski

unread,
Jan 13, 2013, 10:31:37 PM1/13/13
to Julia Dev, Julia Users
We now have the importall keyword that lets you import all the bindings exported by a module. That is

importall Foo

will import all the things exported by Foo.

John Myles White

unread,
Jan 13, 2013, 11:27:46 PM1/13/13
to julia...@googlegroups.com
This will make DataFrames a lot cleaner.

 -- John

--
 
 

Patrick O'Leary

unread,
Jan 14, 2013, 8:55:55 AM1/14/13
to julia...@googlegroups.com, Julia Dev
This is a good place to remind people that there is a distinction between bringing the all the names exported by a module into the local namespace for "read-only"-like uses (the `using` keyword) and bringing names exported by a module into the local namespace for extending dispatch behaviors (the `import` and `importall` keywords).

Diego Javier Zea

unread,
Jan 14, 2013, 4:19:28 PM1/14/13
to julia...@googlegroups.com, Julia Dev
importall Base only give us exported functions on export.jl ? I think this behavior it's intentional. But maybe in future Docs need to be documented that you maybe are going to need import some things manually

importall Base
.
.
.
julia
> nt"ACTG"
in @nt_str: interp_parse_bytes not defined
.
.
.
importall
Base
import Base.interp_parse_bytes
.
.
.
julia
> nt"ACTG"
4-element NucleicAcid Array:
 A
 C
 T
 G

Reply all
Reply to author
Forward
0 new messages